#ifndef _LIST_H
#define _LIST_H

#define NAMESIZE 32

typedef struct score_st
{
	int id;
	char name[NAMESIZE];
	int math;
	int chinese;
} score;

typedef struct node_st
{
	score data;
	struct node_st *next;
} list;

int list_insert_forword(list **, score *data);      //前插法建立链表

int list_insert_backword(list **, score *data);     //后插法建立单链表

void list_show(list *);    //打印单链表

int list_delete(list **);   //首部删除单链表元素

score *list_find(list *, int);   //查找单链表元素

void list_destory(list **);  //销毁单链表

#endif